
package com.soft.sitegenerator.form;

import java.util.Collection;

import org.apache.struts.action.ActionForm;
import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Person;
import com.soft.sitegenerator.business.hibernate.Profile;
import com.soft.sitegenerator.business.hibernate.User;


public class UserEditForm extends ActionForm {

	/*
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
    private Component component=new DataBaseComponent();
    private User user = (User) component.getBean("usersHib");
    
    private Collection profiles;   
    Long idProfile = null;
    private Collection persons;   
    Long idPerson = null;
    
    public Collection getProfiles() {
        return profiles;
    }

    public void setProfiles(Collection profiles) {
        this.profiles = profiles;
    }
    
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public boolean equals(Object arg0) {
		return user.equals(arg0);
	}

	public Long getId() {
		return user.getId();
	}

	public void setId(Long id) {
		user.setId(id);
	}

	public String getUserName() {
		return user.getUserName();
	}

	public void setUserName(String userName) {
		user.setUserName(userName);
	}
	
	public Profile getProfile() {
		return user.getProfile();
	}

	public void setProfile(Profile profile) {
		user.setProfile(profile);
	}
	
	public Person getPerson() {
		return user.getPerson();
	}

	public void setPerson(Person person) {
		user.setPerson(person);
	}

	public String getPassword() {
		return user.getPassword();
	}

	public void setPassword(String password) {
		user.setPassword(password);
	}

	public Long getIdProfile() {
		return idProfile;
	}

	public void setIdProfile(Long idProfile) {
		this.idProfile = idProfile;
	}

	public Collection getPersons() {
		return persons;
	}

	public void setPersons(Collection persons) {
		this.persons = persons;
	}

	public Long getIdPerson() {
		return idPerson;
	}

	public void setIdPerson(Long idPerson) {
		this.idPerson = idPerson;
	}


		
}